#ifndef TRANSWIDGET_H
#define TRANSWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QTextEdit>
#include <QLabel>
#include <QComboBox>
#include <QHBoxLayout>
#include <QNetworkReply>
#include <QNetworkAccessManager>
class TransWidget : public QWidget
{
    Q_OBJECT
private:
    QHBoxLayout *pBelowLayout;
    QTextEdit *pLeftTextEdit;
    QTextEdit *pRightTextEdit;
    QLabel *pToLabel;
    QComboBox *pSourceCombox;
    QComboBox *pDestCombox;
    QPushButton *pTransButton;
    QPushButton *pChangeButton;

    QNetworkAccessManager *pNetworkAccessManager;
private slots:
    void sourceChangeSlot(void);
    void transSlot(void);
    void transResultSlot(QNetworkReply* reply);
public:
    explicit TransWidget(QWidget *parent = nullptr);

signals:

};

#endif // TRANSWIDGET_H
